package StudyCode.summary.mydos;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.attribute.DosFileAttributes;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DosFileAttributeViewIsHidden {
	public static void main(String[] args) {
		DosFileAttributes attr = null;
		Path path = Paths.get("E:/Copy", "1.txt");

		try {
			attr = Files.readAttributes(path, DosFileAttributes.class);
		} catch (IOException e) {
			System.err.println(e);
		}
		System.out.println("是否隐藏? " + attr.isHidden());
	}
}
